<!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<title>manager</title>
<link rel="stylesheet" type="text/css" href="styles/common.css">
</head>
<body>
	<div class="nav" id="">
		<a class="navactive" href="#">用户管理</a>
		<a href="bookmanager">图书管理</a>
		<p>管理员</p>
	</div>
	<form class="search" method="get" action="">
    	<input type="text" name="username">
    	<input type="submit" value="search">
  	</form>

	<table class="tab" id="">
		<tbody>
  			<tr>
    	 		<th>学号</th>
     	 		<th>用户名</th>
     	 		<th>用户状态</th>
     	 		<th>操作</th>
    		</tr>
			<?php foreach($user as $value): ?>
			<tr>
    			<td><?php echo e($value['userid']); ?></td>
		     	<td><?php echo e($value['username']); ?></td>
			    <td><?php if($value['status'] == 1): ?> 正常 <?php else: ?> 欠费 <?php endif; ?></td>
			    <td>
					<?php if($value['status'] == 0): ?><a>解锁</a><?php endif; ?>
					<a value="<?php echo e($value['userid']); ?>" class="delete">删除</a>
				</td>
   			</tr>
			<?php endforeach; ?>
		</tbody>
	</table>
</div>
</body>
<script src="script/jquery-3.1.1.min.js"></script>
<script src="script/manager.js"></script>
</html>